<?php
/**
 * Created by PhpStorm.
 * User: leo
 * Date: 2018/9/30
 * Time: 17:08
 */

namespace app\common\validate;


class CategoryValidate extends BaseValidate
{
    protected $rule = [
        'name' => 'require',
        'pid' => 'isPositiveInteger'
    ];
    protected $message = [
        'name.require' => '请输入分类名称',
        'pid.isPositiveInteger' => '请选择上级分类'
    ];
}